package model

import "gorm.io/gorm"

type Permission struct {
	Id             int    `gorm:"column:id;type:int(11);primary_key;AUTO_INCREMENT;comment:权限ID" json:"id"`
	PermissionName string `gorm:"column:permission_name;type:varchar(255);comment:权限名称" json:"permission_name"`
	PermissionUrl  string `gorm:"column:permission_url;type:varchar(255);comment:权限路由" json:"permission_url"`
	Status         int    `gorm:"column:status;type:tinyint(1);comment:权限状态" json:"status"`
	Pid            int    `gorm:"column:pid;type:int(11);comment:父级ID" json:"pid"`
	gorm.Model
}

func (m *Permission) TableName() string {
	return "permission"
}
